<div id="wrapper-content" align="left">
    <div id="titre_list_produit"><?php echo $langue['etape1']; ?></div>
    <div id="etape1">
        <?php echo validation_errors();
        echo $erreur; ?>
        <?php echo form_open(base_url() . 'index.php/jaco/acheter_etape1/verifier') ?>
        <table id="list_commande">
            <thead>
            <th align="left"></th>
            <th align="left">Type</th>
            <th align="left"><?php echo $langue['montant']; ?></th>
            <th align="left"><?php echo $langue['duree']; ?></th>

            </thead>

            <?php
            foreach ($client as $aRow):
                $adr_client = $aRow['adresse'];
            endforeach;
            $adr = $this->session->userdata('adr');
            $promo = $this->session->userdata('promo');
            $i = 1;
            foreach ($livraison as $aRow):
                if ($i == 1) {
            ?>
                    <tr>
                        <td><input type="radio" name="livraison"  value="<?php echo $aRow['montant'] ?>"  CHECKED ></td>
                        <td width="200px">  <?php echo $aRow['nom'] ?> </td>
                        <td width="100px"><?php echo $aRow['montant'] ?> &euro;</td>
                        <td width="300px"><?php echo $aRow['duree' . $langue['key']] ?></td>
                    </tr>
<?php } else { ?>
                    <tr>
                        <td><input type="radio" name="livraison" value="<?php echo $aRow['montant'] ?>"></td>
                        <td width="200px">  <?php echo $aRow['nom'] ?></td>
                        <td width="100px"><?php echo $aRow['montant'] ?> &euro;</td>
                        <td width="300px"><?php echo $aRow['duree' . $langue['key']] ?></td>
                    </tr>
<?php
                }
                $i++;
            endforeach; ?>
        </table>
        <table id="list_commande">
            <thead>
            <th align="left"><?php echo $langue['adr_liv'] ?></th>
            </thead>
            <tr>
                <td width="530px"> <textarea name="adr" cols="60" rows="7"><?php if ($adr != null && $adr != ""
                )echo $adr; else
                echo $adr_client; ?> </textarea> </td>
            </tr>
        </table>

        <table id="list_commande">
            <thead>
            <th align="left"><?php echo $langue['code_promo'] ?></th>
            </thead>
            <tr>
                <td width="530px"> <input type="text" name="promo" value="<?php if ($promo != null && $promo != ""
                )echo $promo; ?>"/> </td>
            </tr>
        </table>

        <input type="submit" value="Envoyer" class="enter" />
<?php echo form_close() ?>
    </div>
    <!--end etape1-->
</div>

<!--end wrapper-content-->